﻿import gs.TweenLite;
import mx.utils.Delegate;
class cn.eminia.AS2.Bo1 {
	// Btn of One frame
	function Bo1(btn, act, obj) {
		if (btn.real != null) btn.hitArea = btn.real;
		if (act.mode != 1) btn.real._alpha = 0;
		var scope = (act.scope == null) ? btn : act.scope;
		btn.onRollOver = (act.over == null) ? null : Delegate.create(scope, act.over);
		btn.onRollOut = (act.out == null) ? null : Delegate.create(scope, act.out);
		btn.onRelease = (act.click == null) ? null : Delegate.create(scope, act.click); 
		// additional attributes
		if (obj != null) {
			for (var i in obj) {
				btn[i] = obj[i];
			}
		}
	}
}